#include <my_header.h>

typedef enum{
    CD = 0,
    LS,
    LL,
    PWD,
    PUTS,
    GETS,
    REMOVE,
    MKDIR,
    RMDIR,
    QUIT
}commandType;

typedef struct TLVtrain_s{
    commandType type;
    int length;
    char data[4096];
}TLVtrain_t;

typedef struct train_s{
    int length;
    char data[4096];
}train_t;

typedef struct client_s{
    int fd;
    char userName[1024];
    char pwd[1024];
}client_t;

int workCmd(int netFd);

int initTcp(char *ip,char *port);
int sendFile(int netFd,char *file);
int recvFile(int netfd);
int recvn(int sockfd, void *buf, int length);


